import com.mysql.jdbc.exceptions.MySQLSyntaxErrorException;

import java.sql.DriverManager;
import java.sql.Connection;
import java.sql.*;
import java.util.GregorianCalendar;
import java.util.ArrayList;
import java.util.Random;

/**
 * Created by IntelliJ IDEA.
 * User: nelson
 */
public class Teste {



    public static void main(String[] args) throws Exception{
        
        System.out.println("1");
        Client cli = new Client("localhost",55555);
        System.out.println("2");
        String cenas = "cenas";
        String coisa = "coisa";
        String lixo = "lixo";
        byte[] cenasb = cenas.getBytes();
        byte[] lixob= lixo.getBytes();
        byte[] coisab = coisa.getBytes();

        System.out.println("cenasb before");
        cli.writeData(1,cenasb);
        System.out.println("cenasb after");

        cli.writeData(2,lixob);
        cli.writeData(3,coisab);

        System.out.println("lixos");
        byte[] cen = cli.readData(1);
        String cenasr = new String(cen);
        System.out.println("cags");

        //String lixobr = new String(cli.readData(2));
        //String coisar = new String(cli.readData(3));

        //System.out.println(cenasr + lixobr+coisar);

        Object te = new byte[200];


    }
}
